﻿using System;


namespace ThePresenter.Polls.Data
{
	[Serializable]
	class TextAnswerData : AnswerData
	{
		#region Fields
		private String _Answer;
		#endregion


		#region Properties
		/// <summary>
		/// Gets or sets the answer.
		/// </summary>
		/// <value>The answer.</value>
		public String Answer
		{
			get
			{
				if (_Answer == null)
					_Answer = String.Empty;

				return _Answer;
			}
			set
			{
				if (_Answer != value)
				{
					_Answer = value;
					OnPropertyChanged("Author");
				}
			}
		}
		#endregion
	}
}
